//
//  LocStringsViewController.m
//  LocStrings
//
//  Created by Luca Di Franco on 17/08/10.
//  Copyright Luca Di Franco 2010. All rights reserved.
//

#import "LocStringsViewController.h"

@implementation LocStringsViewController

- (void)loadView {
	[super loadView];
	
	UILabel *localizedLabel = [[[UILabel alloc] initWithFrame:CGRectMake(10, 10, 300, 30)] autorelease];
	// Search the key in the Localizable.strings table (the default table). The language depends on your iPhone settings.
	localizedLabel.text = NSLocalizedString(@"HELLO WORLD", @"");
	[self.view addSubview:localizedLabel];
	
	localizedLabel = [[[UILabel alloc] initWithFrame:CGRectMake(10, 80, 300, 30)] autorelease];
	// If the key isn't in the default table, the key is used as string.
	localizedLabel.text = NSLocalizedString(@"DevApp", @"");
	[self.view addSubview:localizedLabel];
	
	localizedLabel = [[[UILabel alloc] initWithFrame:CGRectMake(10, 150, 300, 30)] autorelease];
	// Search the key in the Uppercase.strings table. The language always depends on your iPhone settings.
	localizedLabel.text = NSLocalizedStringFromTable(@"HELLO WORLD", @"Uppercase", @"");
	[self.view addSubview:localizedLabel];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}

- (void)dealloc {
    [super dealloc];
}

@end
